<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <script type="text/javascript" src="/dep/jquery/jquery-1.9.1.min.js" ></script>
    <script type="text/javascript" src="/dep/jquery/jquery.validate.js" ></script>
    <script type="text/javascript">
        $(function(){
            $.extend($.validator.messages, {
                required: '请输入信息！',
            });
            $("#sysloginform").validate({
            rules: {
                'username': {
                    required: true
                },
                'password': {
                    required: true
                }
            },
                message: {
                'username': {
                    required: "用户名"
                },
                'password': {
                    required: "密码"
                }
            }
        })
        })
    </script>
    <title>系统登录</title>
</head>
<body>
<div align="center">
    <form id="sysloginform" action="/sys/logincheck.html">
        <table>
            <tr>
                <td colspan="2" style="text-align: center"><h2>系统登录</h2>${loginerror}</td>
            </tr>
            <tr>
                <td>用户名：</td>
               <td><input id="username" name="username"></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input id="password" name="password"></td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <input type="submit" value="提交">
                    <input type="reset" value="重置">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
